<?php
    /**
     * Created by PhpStorm.
     * User: lance
     * Date: 2017/10/26
     * Time: 15:40
     */

    namespace app\manager\model;
    use think\Model;

    class Manager extends Model
    {
        protected $readonly=[
            'number'
        ];
        public function setBirthdayAttr($s_birthday){
            return strtotime($s_birthday);
        }
        public function getBirthdayAttr($s_birthday){
            return date("Y-m-d",$s_birthday);
        }

    }